package com.lzy.concertticket.util;

import org.springframework.stereotype.Component;

@Component
public class OperateSystemUtil {


    //  判断当前操作系统是不是windows
    public static boolean isWindows() {
        return System.getProperty("os.name").toLowerCase().startsWith("win");
    }
    //  判断是不是linux
    public static boolean isLinux() {
        return System.getProperty("os.name").toLowerCase().startsWith("linux");
    }
    //  判断是不是mac
    public static boolean isMac() {
        return System.getProperty("os.name").toLowerCase().startsWith("mac");
    }

}